The convention we follow is that the PROP_foo define should
match the property name. Therefore, change PROP_MODEL to
PROP_MENU_MODEL to match "menu-model".
{
PROP_0,
PROP_POPUP,
- PROP_MODEL,
+ PROP_MENU_MODEL,
PROP_ALIGN_WIDGET,
PROP_DIRECTION,
PROP_USE_POPOVER,
case PROP_POPUP:
gtk_menu_button_set_popup (self, g_value_get_object (value));
break;
- case PROP_MODEL:
+ case PROP_MENU_MODEL:
gtk_menu_button_set_menu_model (self, g_value_get_object (value));
break;
case PROP_ALIGN_WIDGET:
case PROP_POPUP:
g_value_set_object (value, priv->menu);
break;
- case PROP_MODEL:
+ case PROP_MENU_MODEL:
g_value_set_object (value, priv->model);
break;
case PROP_ALIGN_WIDGET:
* Since: 3.6
*/
g_object_class_install_property (gobject_class,
- PROP_MODEL,
+ PROP_MENU_MODEL,
g_param_spec_object ("menu-model",
P_("Menu model"),
P_("The model from which the popup is made."),